package com.fx.area.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 行政区划对象 fx_area
 * 
 * @author fxiao
 * @date 2021-09-27
 */
public class Area extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 行政级别 */
    @Excel(name = "行政级别")
    private Integer level;

    /** 行政区划代码 */
    private Long code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** $column.columnComment */
    private Long parentCode;

    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setCode(Long code) 
    {
        this.code = code;
    }

    public Long getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setParentCode(Long parentCode) 
    {
        this.parentCode = parentCode;
    }

    public Long getParentCode() 
    {
        return parentCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("level", getLevel())
            .append("code", getCode())
            .append("name", getName())
            .append("parentCode", getParentCode())
            .append("createBy", getCreateBy())
            .toString();
    }
}
